package com.bigdata.booklibraryseatapi.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.bigdata.booklibraryseatapi.common.pojo.BookRecordDetail;
import com.bigdata.booklibraryseatapi.common.pojo.SeatStatus;
import com.bigdata.booklibraryseatapi.entity.BookRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bigdata.booklibraryseatapi.vo.req.GetSeatStatusReqVO;
import com.bigdata.booklibraryseatapi.vo.req.PageRecordReqVO;
import com.bigdata.booklibraryseatapi.vo.req.UserBookStatusReqVO;
import com.bigdata.booklibraryseatapi.vo.resp.PageRecordRespVO;
import com.bigdata.booklibraryseatapi.vo.resp.UserBookStatusRespVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 预约记录 Mapper 接口
 * </p>
 *
 * @author book
 * @since 2023-12-13
 */
@Mapper
public interface BookRecordMapper extends BaseMapper<BookRecord> {
    IPage<PageRecordRespVO> selectPageRecord(IPage<?> page, @Param("vo") PageRecordReqVO vo);

    List<BookRecordDetail> selectSeatStatus(@Param("vo") SeatStatus vo);

    List<UserBookStatusRespVO> selectUserBook(@Param("vo")UserBookStatusReqVO vo);
}
